//
//  HYPersonModel.m
//  duoduo
//
//  Created by 上官惠阳 on 2016/11/28.
//  Copyright © 2016年 LX. All rights reserved.
//

#import "HYPersonModel.h"

@implementation HYPersonModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
-(instancetype)initWithCoder:(NSCoder *)aDecoder{
    if (self = [super init]) {
        self.addr = [aDecoder decodeObjectForKey:@"addr"];
        self.amount = [aDecoder decodeObjectForKey:@"amount"];
        self.area = [aDecoder decodeObjectForKey:@"area"];
        self.balance = [aDecoder decodeObjectForKey:@"balance"];
        self.ban = [aDecoder decodeObjectForKey:@"ban"];
        self.birthday = [aDecoder decodeObjectForKey:@"birthday"];
        self.city = [aDecoder decodeObjectForKey:@"city"];
        self.code = [aDecoder decodeObjectForKey:@"code"];
        self.comment_num = [aDecoder decodeObjectForKey:@"comment_num"];
        self.comment_rank = [aDecoder decodeObjectForKey:@"comment_rank"];
        self.county = [aDecoder decodeObjectForKey:@"county"];
        self.email = [aDecoder decodeObjectForKey:@"email"];
        self.face = [aDecoder decodeObjectForKey:@"face"];
        self.id = [aDecoder decodeObjectForKey:@"id"];
        self.im_prefix = [aDecoder decodeObjectForKey:@"im_prefix"];
        self.im_uid = [aDecoder decodeObjectForKey:@"im_uid"];
        self.logintime = [aDecoder decodeObjectForKey:@"logintime"];
        self.mobile = [aDecoder decodeObjectForKey:@"mobile"];
        self.pass = [aDecoder decodeObjectForKey:@"pass"];
        self.province = [aDecoder decodeObjectForKey:@"province"];
        self.reffer = [aDecoder decodeObjectForKey:@"reffer"];
        self.regip = [aDecoder decodeObjectForKey:@"regip"];
        self.regtime = [aDecoder decodeObjectForKey:@"regtime"];
        self.sex = [aDecoder decodeObjectForKey:@"sex"];
        self.state = [aDecoder decodeObjectForKey:@"state"];
        self.uid = [aDecoder decodeObjectForKey:@"uid"];
        self.username = [aDecoder decodeObjectForKey:@"username"];
        self.utype = [aDecoder decodeObjectForKey:@"utype"];
    }
    return self;
}
-(void)encodeWithCoder:(NSCoder *)aCoder{
    [aCoder encodeObject:self.addr forKey:@"addr"];
    [aCoder encodeObject:self.amount forKey:@"amount"];
    [aCoder encodeObject:self.area forKey:@"area"];
    [aCoder encodeObject:self.balance forKey:@"balance"];
    [aCoder encodeObject:self.ban forKey:@"ban"];
    [aCoder encodeObject:self.birthday forKey:@"birthday"];
    [aCoder encodeObject:self.city forKey:@"city"];
    [aCoder encodeObject:self.code forKey:@"code"];
    [aCoder encodeObject:self.comment_num  forKey:@"comment_num"];
    [aCoder encodeObject:self.comment_rank  forKey:@"comment_rank"];
    [aCoder encodeObject:self.county  forKey:@"county"];
    [aCoder encodeObject:self.email  forKey:@"email"];
    [aCoder encodeObject:self.face  forKey:@"face"];
    [aCoder encodeObject:self.id  forKey:@"id"];
    [aCoder encodeObject:self.im_prefix  forKey:@"im_prefix"];
    [aCoder encodeObject:self.im_uid  forKey:@"im_uid"];
    [aCoder encodeObject:self.logintime  forKey:@"logintime"];
    [aCoder encodeObject:self.mobile  forKey:@"mobile"];
    [aCoder encodeObject:self.pass  forKey:@"pass"];
    [aCoder encodeObject:self.province  forKey:@"province"];
    [aCoder encodeObject:self.reffer  forKey:@"reffer"];
    [aCoder encodeObject:self.regip  forKey:@"regip"];
    [aCoder encodeObject:self.regtime  forKey:@"regtime"];
    [aCoder encodeObject:self.sex  forKey:@"sex"];
    [aCoder encodeObject:self.state  forKey:@"state"];
    [aCoder encodeObject:self.uid  forKey:@"uid"];
    [aCoder encodeObject:self.username  forKey:@"username"];
    [aCoder encodeObject:self.utype  forKey:@"utype"];
}
@end
